local allowedconst = {	"adv_duplicator","ballsocket_adv","rtcamera","ballsocket",
						"muscle","weld","trails",
						"axis","no_collide_multi","material","hydraulic",
						"remover","camera","rope","weld_ez","ballsocket_ez","motor",
						"primitive"}
local allowedweaps = {	"flak_blaster_1000","ship_core","cooler_upgrade_small",
						"rocket_generator_small","bw_1000","energy_upgrade_small",
						"laser_blaster_1000","photon_blaster_1000","Shipcore",
						"RailGun_1000","flamer_1000"
						}
local allowedtweaks = {"Tweaks"}
local allowedplayer = {"Model","Settings"}
local user = {"User_Cleanup","Undo"}
local admin = {"Admin_Cleanup","ServerSettings"}

local baseAddToolMenuOption = spawnmenu.AddToolMenuOption
function spawnmenu.AddToolMenuOption( tab, cat, name, text, cmd, cp, cpf, btn )
	if table.HasValue(allowedconst,name) then
		baseAddToolMenuOption( tab, "Construction", name, text, cmd, cp, cpf, btn )
	elseif table.HasValue(allowedweaps,name) then
		baseAddToolMenuOption( tab, "ShipSystems", name, text, cmd, cp, cpf, btn )
	elseif table.HasValue(allowedtweaks,name) then
		baseAddToolMenuOption( tab, "Performance", name, text, cmd, cp, cpf, btn )
	elseif table.HasValue(allowedplayer,name) then
		baseAddToolMenuOption( tab, "User", name, text, cmd, cp, cpf, btn )
	elseif table.HasValue(admin,name) then	
		baseAddToolMenuOption( tab, "Admin", name, text, cmd, cp, cpf, btn )
	end
end
